﻿using newcj_routerperformancemonitor.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace newcj_routerperformancemonitor.Console
{
    public class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("Detecting terminals...");

            Monitor.Logged += Monitor_Logged;
            Monitor.Gateway = "192.168.191.1";
            Monitor.Start();

            System.Console.ReadKey();
        }

        static void Monitor_Logged(object sender, LoggedEventArgs e)
        {
            System.Console.WriteLine(e.Log);
        }
    }
}
